#include <iostream>

int main() {
    float score[3][4] = {{99, 98, 97, 95}, {87,56,23,87}, {84,61,71,80}};
    float * search(float (* pointer)[4], int n);
    float * p;
    int i, k;
    printf("enter the number of student:");
    scanf("%d", &k);
    printf("The score of NO.%d are:\n", k);
    p = search(score, k);
    for (i = 0; i < 4; i++) {
        printf("%5.2f\t", *(p + i));
    }
    return 0;
}

float * search(float (* pointer)[4], int n) {
    float * pt;
    pt = * (pointer + n);       // pt的值是&score[k][0]
    return (pt);
}